<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Index_Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">
    function clearInput()
    {
        if( confirm("Do you want to cancle register?") )
        {
            document.getElementById("txtUserName").value = "";
            document.getElementById("txtPwd").value = "";
            document.getElementById("txtMail").value = "";
            document.getElementById("txtPwdResetQ").value = "";
            document.getElementById("txtAnswer").value = "";
            location.href = "Default.aspx";
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table>
    <tr><td>User Name</td><td><asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td></tr>
    <tr><td>Password</td><td><asp:TextBox ID="txtPwd" runat="server"></asp:TextBox></td></tr>
    <tr><td>E-Mail</td><td><asp:TextBox ID="txtMail" runat="server"></asp:TextBox></td></tr>
    <tr><td>Password reset question</td><td><asp:TextBox ID="txtPwdResetQ" runat="server"></asp:TextBox></td></tr>
    <tr><td>Answer</td><td><asp:TextBox ID="txtAnswer" runat="server"></asp:TextBox></td></tr>
    <tr><td colspan="2" align="right"><input type="button" value="Cancle" onclick="return clearInput();" /><asp:Button ID="btnRegister" runat="server" Text="Register" OnClick="btnRegister_Click" /></td></tr>
    </table>
    </form>
</body>
</html>
